package threadStudy;

public class Task implements Runnable {


    @Override
    public void run() {
        try {
            Thread.sleep(1000);
        } catch (InterruptedException e) {
            System.out.println("被中断了"+Thread.currentThread().getName());
            e.printStackTrace();
        }
        System.out.println(Thread.currentThread().getName());
    }
}
